package request

type TmallServicecenterWorkcardCollectRequest struct {
	/*
	   工单id     */
	WorkcardId *int64 `json:"workcard_id,omitempty" required:"false" `
	/*
	   买家id     */
	BuyerId *int64 `json:"buyer_id,omitempty" required:"false" `
	/*
	   扩展信息     */
	Attributes *string `json:"attributes,omitempty" required:"false" `
}

func (s *TmallServicecenterWorkcardCollectRequest) SetWorkcardId(v int64) *TmallServicecenterWorkcardCollectRequest {
	s.WorkcardId = &v
	return s
}
func (s *TmallServicecenterWorkcardCollectRequest) SetBuyerId(v int64) *TmallServicecenterWorkcardCollectRequest {
	s.BuyerId = &v
	return s
}
func (s *TmallServicecenterWorkcardCollectRequest) SetAttributes(v string) *TmallServicecenterWorkcardCollectRequest {
	s.Attributes = &v
	return s
}

func (req *TmallServicecenterWorkcardCollectRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkcardId != nil {
		paramMap["workcard_id"] = *req.WorkcardId
	}
	if req.BuyerId != nil {
		paramMap["buyer_id"] = *req.BuyerId
	}
	if req.Attributes != nil {
		paramMap["attributes"] = *req.Attributes
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardCollectRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
